<%@ include file="/WEB-INF/view/common/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
	<head> 
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<link rel="stylesheet" href="/456cv/css/custom.css" type="text/css" />
	</head>
	<body>
		<div id="globalcontainer">
			<div class="collaborateur">
				<div class="container">
					<div class="titre">
						<h1><fmt:message key="lang.consult.headtitle"/></h1>
					</div>
					
					<c:if test="${fn:length(langues) gt 0}">
						<div class="langue">
							<p>
								<span class="label libelle"><fmt:message key="lang.common.headlabel.lang"/></span>
								<span class="label niveau"><fmt:message key="lang.common.headlabel.level"/></span>
								<span class="label pratique"><fmt:message key="lang.common.headlabel.practice"/></span>
								<span class="label commentaire"><fmt:message key="lang.common.headlabel.comment"/></span>
								<span class="label action"><fmt:message key="lang.common.headlabel.action"/></span>
							</p>
							<c:forEach var="langueId" items="${langues}">
								<%-- action supprimer --%>
								<c:url value="supprimer.htm" var="supprimerLangueUrl">
									<c:param name="idlangue" value="${langueId.langue.id}"/>
								</c:url>
								<%-- action editer --%>
								<c:url value="editer.htm" var="editerLangueUrl">
									<c:param name="idlangue" value="${langueId.langue.id}"/>
								</c:url>
								<p>
									<span class="libelle"><c:out value="${langueId.langue.libelle}"/></span>
									<span class="niveau"><c:out value="${langueId.niveau}"/></span>
									<span class="pratique"><c:out value="${langueId.pratique}"/></span>
									<span class="commentaire"><c:out value="${langueId.commentaire}"/></span>
									<span class="action">
										<a class="action decoration" href="${supprimerLangueUrl}">
											<fmt:message key="lang.common.headlabel.action.delete"/>
										</a> &#124; <a class="action decoration" href="${editerLangueUrl}">
										<fmt:message key="lang.common.headlabel.action.edit"/>
										</a>
									</span>
								</p>
							</c:forEach>
						</div>
						<div class="cleaner"></div>
					</c:if>
					
					<c:if test="${fn:length(langues) < 1}">
						<div class="cleaner"></div>
						<div class="notification">
							<fmt:message key="lang.consult.headlabel.noresult" />
						</div>
					</c:if>
					
					<div class="common commande action">
						<p>
							<a href="ajouter.html"><fmt:message key="lang.ajout.button.addlang" /></a>
						</p>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>